<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\Files
 *
 * @property int $file_id
 * @property int $list_id
 * @property string $file_name
 * @property mixed $file
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property \Illuminate\Support\Carbon|null $created_at
 * @method static \Illuminate\Database\Eloquent\Builder|Files newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Files newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Files query()
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereFile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereFileId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereFileName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereListId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereUpdatedAt($value)
 * @property string $id
 * @property string $name
 * @property string|null $update_time
 * @property string|null $deleted_time
 * @property string|null $create_time
 * @method static \Illuminate\Database\Eloquent\Builder|Files onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereCreateTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereDeletedTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereUpdateTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Files withoutTrashed()
 * @property string $belong_to
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereBelongTo($value)
 * @property string $uploader
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereUploader($value)
 * @property string $type
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereType($value)
 * @property string $mime
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereMime($value)
 * @property int $status
 * @property int|null $allow
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereAllow($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereStatus($value)
 * @property int $root
 * @method static \Illuminate\Database\Eloquent\Builder|Files whereRoot($value)
 * @mixin \Eloquent
 */
class Files extends Model
{
    use HasFactory;
    use SoftDeletes;

    /**
     * @var \Illuminate\Support\HigherOrderCollectionProxy|mixed
     */
    protected $fillable = [
        'id',
        'name',
        'belong_to',
        'file',
        'type',
        'uploader',
        'mime',
        'root',
        'allow',
        'status'
    ];
    protected $table = 'files';
    protected $primaryKey = 'id';
    public $incrementing = false;
}
